-- GENERATED SPELL FOR [Injured Warsong Shaman] --


function spell0_27108(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(16033,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27108', 3000, 1)
end

function spell1_27108(pUnit, Event) --@Earth Shock,n/a--
pUnit:FullCastSpellOnTarget(25025,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27108', 2278, 1)
end

function spell2_27108(pUnit, Event) --@Soldier Rescued,n/a--
pUnit:FullCastSpellOnTarget(47968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27108', 658, 1)
end

function Sorts_27108(pUnit, Event)
local choix_sorts_27108 = math.random(0, 2)
if choix_sorts_27108 == 0 then
pUnit:RegisterEvent('spell0_27108', 1, 1)
end
if choix_sorts_27108 == 1 then
pUnit:RegisterEvent('spell1_27108', 1, 1)
end
if choix_sorts_27108 == 2 then
pUnit:RegisterEvent('spell2_27108', 1, 1)
end
end

function mob27108_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27108', math.random(1500, 3000), 1)
end

function mob27108_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27108_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27108_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27108, 1, 'mob27108_Action')
RegisterUnitEvent(27108, 2, 'mob27108_Leave')
RegisterUnitEvent(27108, 3, 'mob27108_Kill')
RegisterUnitEvent(27108, 4, 'mob27108_Die')
